package com.example.demo.controller;

import com.example.demo.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ConverController
 * @Author bsy
 * @Description 测试转化
 * 1）http://localhost:8080/userformat
 * {
 * 	"id": "001",
 * 	"name": "zs",
 * 	"registerDate": "20220825"
 * }
 * @Date 2022/8/24 22:36
 * @Version 1.0
 */

@RestController
public class ConverController {

    @PostMapping(value = "/userformat")
    public String save(@RequestBody User user) {
        System.out.println(user);
        return "success";
    }
}
